﻿ 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Dapper;
using MX.Core.ORM;
using UserCenter.Models;

namespace UserCenter.BLL
{
    public class MerchantBLL
    {
        static public Merchant Info(int merchantId)
        {
            using (var conn = DatabaseHelper.Get())
            {
                return conn.SingleOrDefault<Merchant>("select * from merchant where MerchantId=@MerchantId",
                    new { MerchantId = merchantId });
            }
        }

    }
}
